package com.yystar.security.support.jdbc;

/**
 * 
 * @author Vistaa Peng
 * @date 2013-6-27
 * @todo TODO
 * @modify	<BR>
 * 1.2013-6-27 Vistaa Peng Create file.
 */
public class WebResult {
	public static final String FAILED = "FAILED";
	public static final String SUCCEED = "SUCCEED";
	private String message;
	private String resultCode;
	private int resultCount;
	public WebResult(int resultCount){
		this.resultCount = resultCount;
		if(resultCount > 0){
			this.resultCode = SUCCEED;
			this.message = SUCCEED;
		}else{
			this.resultCode = FAILED;
			this.message = FAILED;
		}
	}
	public WebResult(int resultCount ,String resultCode){
		this.resultCode = resultCode;
		this.resultCount = resultCount;
	}
	public String getMessage() {
		return message;
	}
	public String getResultCode() {
		return resultCode;
	}
	
	public int getResultCount() {
		return resultCount;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}
	public void setResultCount(int resultCount) {
		this.resultCount = resultCount;
	}
}
